<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>README</title>
    <link type="text/css" rel="stylesheet" href="css/markdown.css">
    <script src="js/jquery-1.9.1.min.js"></script>
    <script src="js/marked.min.js"></script>
</head>
<body>
    <div id="content" class="markdown-body"></div>
</body>
<script>
    $(document).ready(function(){
        //读取md文件 显示
        $.ajax({
            url: "README.md",//md文件位置
            type: "GET",//请求方式为get
            dataType: "text", //返回数据格式为text
            async: false,
            success: function (data) {//请求成功完成后要执行的方法 
                $("#content").html(marked(data));
                $('a').attr("target","_blank");
            }
        })
    })
</script>
</html>